<template>
  <div>
    <div>
      <tabpane>
        <div slot="nz">
          <agriculturalList
            @classification="classification"
            :idx="idx"
          ></agriculturalList>
        </div>
        <div slot="nj">
          <machineList
            @classification="classification"
            :idx="idx"
          ></machineList>
        </div>
      </tabpane>
    </div>
  </div>
</template>

<script>
import tabpane from "@/components/tab-pane/index";
import agriculturalList from "./components/agriculturalList";
import machineList from "./components/machineList";
export default {
  data() {
    return {
      idx: null
    };
  },
    components: {
    tabpane,
    agriculturalList,
    machineList
  },
    methods: {
    classification(val) {
      this.idx = val;
      console.log("val", val);
    }
  },
};
</script>

<style scoped></style>
